class CreateUrls < ActiveRecord::Migration
  def self.up
    create_table :urls, :force => true do |t|
      t.column :body, :string
      t.column :type, :integer    #fk of urltypes
      t.column :last_collected_at, :datetime
      t.column :last_collected_user, :integer   #fk of users
      t.column :note, :text
      t.column :description, :text
    end
  end

  def self.down
    drop_table :urls
  end
end
